package com.api.user.dao;

import com.api.core.ApiMapper;
import com.api.user.model.Identification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;
import java.util.Map;

@Mapper
public interface IdentificationMapper extends ApiMapper<Identification> {
    List<Map<String, Object>> list(@Param("params") Map<String, Object> params, @Param("order") Map<String, Object> orderParams);

    Identification findByUserType(@Param("userId")Long userId, @Param("type") String type);
    List<Identification> findByUser(Long userId);

    void updateByUserAndType(@Param("identification") Identification identification);
}